package io.renren.controller;

import io.renren.service.XlsLogCashService;
import io.renren.utils.AppResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 消费明细
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
@RestController
@RequestMapping("/api/xlslogcash")
@Api(tags="消费明细")
public class XlsLogCashController {
    @Autowired
    private XlsLogCashService xlsLogCashService;

    /**
     * 查看消费明细
     */
    @PostMapping( "/consumption")
    @ApiOperation("查看消费明细")
    public AppResult consumption(Long userId,Integer type) {
        return xlsLogCashService.consumption(userId,type);
    }


}